package animator.phantom.renderer.threedee;

/*
    Copyright Janne Liljeblad

    This file is part of Phantom2D.

    Phantom2D is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Phantom2D is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Phantom2D.  If not, see <http://www.gnu.org/licenses/>.
*/

import animator.phantom.renderer.ImageOperation;
import animator.phantom.renderer.param.AnimCoords3D;
import animator.phantom.paramedit.threedee.Phantom3DCameraEditPanel;
import animator.phantom.paramedit.panel.*;
import animator.phantom.renderer.param.*;

public class Phantom3DCamera extends ImageOperation
{
	public AnimCoords3D coords;
	public IntegerParam createIndex = new IntegerParam(0);
	public AnimatedValue fieldOfView;
	
	private static float DEFAULT_Z_POS = 2;

	public Phantom3DCamera()
	{
		name = "3D Camera";
		coords = new AnimCoords3D( this );
		coords.z.setValue( 0, DEFAULT_Z_POS );
		createIndex = new IntegerParam( 0 );	
		fieldOfView = new AnimatedValue( 60, 5, 130 );

 		registerCoords( coords );
		registerParameter( createIndex );
		registerParameter( fieldOfView );
	}

	public ParamEditPanel getEditPanelInstance()
	{
		return new Phantom3DCameraEditPanel( this );
	}

}//end class
